package com.boatAnchorAssistant.pojo.entity;

import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import nirvana.core.domains.ann.AccEntity;
import nirvana.core.domains.entity.DomainBaseEntity;
import nirvana.core.domains.enums.EntityType;

import javax.persistence.Table;

/**
 * 【描 述】：
 * 【环 境】：J2SE 21
 * 【详 细】：
 *
 * @author 李松林
 * @version v1.0 2024/3/6 新建
 * @since 2024/3/6
 */
@Data
@Table
@AccEntity(value = "数据字典类型", type = EntityType.SERVICE_ENTITY)
@TableComment("数据字典类型")
public class DataDictionaryType extends DomainBaseEntity<DataDictionaryType> {


    /**
     * 类型
     */
    @Column(type = MySqlTypeConstant.VARCHAR,
            comment = "类型",
            isNull = false)
    private String type;


    /**
     * 名称
     */
    @Column(type = MySqlTypeConstant.VARCHAR,
            comment = "名称",
            isNull = false)
    private String name;


    /**
     * 备注
     */
    @Column(type = MySqlTypeConstant.VARCHAR,
            comment = "备注",
            isNull = false,
            defaultValue = "")
    private String remark;

    /**
     * 是否系统
     */
    @Column(type = MySqlTypeConstant.BIT,
            comment = "是否系统",
            isNull = false,
            defaultValue = "0")
    private Boolean isSystem;

}
